home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Plus 2004 #9
/
Amiga Plus CD - 2004 - No. 09.iso
/
amigaplus
/
tools
/
amigaos4_only
/
ifxlite
/
imagefx3
/
rexx
/
autofx
/
text.ifx
< prev
next >
Wrap
Text File
|
2004-08-03
|
873b
|
46 lines
/*
* Text.ifx
* Written by Thomas Krehbiel
*
* Generate text.
*
* Inputs:
* Word(Arg(1),1) = Frame number (1 - N)
* Word(Arg(1),2) = Main filename ("-" if not specified)
* Word(Arg(1),3) = Swap filename ("-" if not specified)
* Word(Arg(1),4) = Sequence number
* Word(Arg(1),5) = Total number of frames (N)
*
* Returns:
* 0 if successful, non-zero on failure
*
*/
OPTIONS RESULTS
base = 'Autofx_Text_'
txt = GETCLIP(base||'Text')
font = GETCLIP(base||'Font')
size = GETCLIP(base||'Size')
x = GETCLIP(base||'X')
y = GETCLIP(base||'Y')
shad = GETCLIP(base||'Shadow')
GetMain
IF rc ~= 0 THEN EXIT rc
PARSE VAR result name width height .
IF x = -1 THEN x = width % 2
IF y = -1 THEN y = height % 2
Text '"'font'"' size 100 '"'txt'"'
IF shad THEN DO
DrawMode Darken
Point x+2 y+2
END
DrawMode Normal
Point x y
EXIT